package com.sdry.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;


/**
 * @version: 1.0
 * @description: 菜单
 * @author: cb
 * @create: 2019-12-11 16:40
 **/
@Data
@TableName(value = "sys_menu")
public class JsonRootData {

    /** * id */
    @TableId(type = IdType.AUTO)
    private Long permissionId;

    /** * 资源名称 */
    private String permissionName;

    /** * 资源路径 */
    private String permissionUrl;

    /** * 描述*/
    private String permissionType;

    /** * 图标 */
    private String icon;

    /** * 父id */
    private Long pid;

    @TableField(value = "p_id",exist = false)
    private Long pId;

    /*** 排序 */
    private int seq;

    /*** 删除标记（0：正常；1：删除）*/
    private String delFlag;

    /**创建人*/
    private String createBy;

    /**创建时间*/
    private Timestamp createDate;

    /**更新人*/
    private String updateBy;

    /**更新时间*/
    private Timestamp updateDate;


    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pId = pid;
        this.pid = pid;
    }
}
